package cn.itcast.nems.studentrecord.dao.mapper;

import cn.itcast.nems.studentrecord.dao.entity.JournalFundTransfer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 学费转移凭单 Mapper 接口
 * </p>
 *
 * @author 陈早庆
 * @since 2024-02-23
 */
@Mapper
public interface JournalFundTransferMapper extends BaseMapper<JournalFundTransfer> {

    IPage<JournalFundTransfer> listPage(Page<?> objectPage, @Param("param") JournalFundTransfer param);

    IPage<Map> searchClazzes(Page<?> objectPage, @Param("param") JournalFundTransfer params);
    Integer getSumTransferAmount(@Param("originStudentRecordId") String originStudentRecordId);

    JournalFundTransfer getById(@Param("id") String id);
}
